< previous page page_151 next page >

Page 151
WEEK 1
Day 6
Procedures, Functions, and Logic..
Up to this point in the book, you've seen many different tools and features that you can use when creating a Visual Basic application. By following the book's examples, you have worked with built-in functions, statements, and event procedures, and have even created your own class module. What you didn't know (or like many programmers, didn't care about) was how the information was being passed to and from the different routines in the application. You've seen routines that start like this
Private Sub Main()
but didn't understand why the parentheses were needed or what Private really meant. The only thing that you knew was that they were needed for the application to run properly. Today's lesson looks at how variables are declared in an application and the different ways in which Visual Basic handles them. Also, you will learn the differences between subprocedures and functions and how each are used. Finally, you will review the concept of writing a logical application and see how to use some of your old programming friends in a different way.

 
< previous page page_151 next page >

If you like this book, buy it!